package ygstudio.xue.de.db;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteDatabase.CursorFactory;
import android.database.sqlite.SQLiteOpenHelper;
import android.util.Log;

public class DbOpenHelper extends SQLiteOpenHelper {

	public DbOpenHelper(Context context, String name, CursorFactory factory,
			int version) {
		super(context, name, factory, version);
	}

	@Override
	public void onCreate(SQLiteDatabase db) {
		db.execSQL(DB.getCreateSql(DB.TABLE_SATZ));
		db.execSQL(DB.getCreateSql(DB.TABLE_TEXT));
		db.execSQL(DB.getCreateSql(DB.TABLE_WORT));
		Log.i("create TABLE", "text, satz, wort");
	}

	@Override
	public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {

	}
}
